﻿using SqlSugar;
using System;
using System.Linq;
using System.Text;

namespace RobotInspection.Entities
{
    ///<summary>
    ///设备用户绑定关系表
    ///</summary>
    public partial class equipment_user_relations
    {
           public equipment_user_relations(){


           }

           /// <summary>
           /// Desc:关系ID
           /// Default:
           /// Nullable:False
           /// </summary>    
           [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
           public long id {get;set;}

           /// <summary>
           /// Desc:设备ID（外键关联equipment表）
           /// Default:
           /// Nullable:False
           /// </summary>           
           public long equipment_id {get;set;}

           /// <summary>
           /// Desc:用户ID（外键关联users表）
           /// Default:
           /// Nullable:False
           /// </summary>           
           public long user_id {get;set;}

           /// <summary>
           /// Desc:是否为主要负责人：1-是，0-否
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public byte is_primary {get;set;}

           /// <summary>
           /// Desc:关系状态：1-有效，0-无效
           /// Default:1
           /// Nullable:False
           /// </summary>           
           public byte is_active {get;set;}

           /// <summary>
           /// Desc:备注信息
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string remark {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? created_at {get;set;}

           /// <summary>
           /// Desc:更新时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? updated_at {get;set;}

    }
}
